package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._20职责链模式._1基本代码;

abstract class Handler{
    protected Handler successor;

    //设置继任者
    public void setSuccessor(Handler successor){
        this.successor = successor;
    }

    public abstract void handleRequest(int request);
}
